\hypertarget{classTiXmlAttribute}{\section{\-Ti\-Xml\-Attribute \-Class \-Reference}
\label{classTiXmlAttribute}\index{\-Ti\-Xml\-Attribute@{\-Ti\-Xml\-Attribute}}
}


{\ttfamily \#include $<$tinyxml.\-h$>$}

\-Inheritance diagram for \-Ti\-Xml\-Attribute\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTiXmlAttribute}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlAttribute_a9cfa3c8179873fd485d83003b114f8e1}{\hyperlink{classTiXmlAttribute_a9cfa3c8179873fd485d83003b114f8e1}{\-Ti\-Xml\-Attribute} ()}\label{classTiXmlAttribute_a9cfa3c8179873fd485d83003b114f8e1}

\begin{DoxyCompactList}\small\item\em \-Construct an empty attribute. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a052213522caac3979960e0714063861d}{\hyperlink{classTiXmlAttribute_a052213522caac3979960e0714063861d}{\-Ti\-Xml\-Attribute} (const std\-::string \&\-\_\-name, const std\-::string \&\-\_\-value)}\label{classTiXmlAttribute_a052213522caac3979960e0714063861d}

\begin{DoxyCompactList}\small\item\em std\-::string constructor. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a759d0b76fb8fcf765ecab243bc14f05e}{\hyperlink{classTiXmlAttribute_a759d0b76fb8fcf765ecab243bc14f05e}{\-Ti\-Xml\-Attribute} (const char $\ast$\-\_\-name, const char $\ast$\-\_\-value)}\label{classTiXmlAttribute_a759d0b76fb8fcf765ecab243bc14f05e}

\begin{DoxyCompactList}\small\item\em \-Construct an attribute with a name and value. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a298a57287d305904ba6bd96ae6f78d3d}{const char $\ast$ \hyperlink{classTiXmlAttribute_a298a57287d305904ba6bd96ae6f78d3d}{\-Name} () const }\label{classTiXmlAttribute_a298a57287d305904ba6bd96ae6f78d3d}

\begin{DoxyCompactList}\small\item\em \-Return the name of this attribute. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a0f874490eac8ca00ee0070765d0e97e3}{const char $\ast$ \hyperlink{classTiXmlAttribute_a0f874490eac8ca00ee0070765d0e97e3}{\-Value} () const }\label{classTiXmlAttribute_a0f874490eac8ca00ee0070765d0e97e3}

\begin{DoxyCompactList}\small\item\em \-Return the value of this attribute. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a87705c3ccf9ee9417beb4f7cbacd4d33}{const std\-::string \& \hyperlink{classTiXmlAttribute_a87705c3ccf9ee9417beb4f7cbacd4d33}{\-Value\-Str} () const }\label{classTiXmlAttribute_a87705c3ccf9ee9417beb4f7cbacd4d33}

\begin{DoxyCompactList}\small\item\em \-Return the value of this attribute. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_aa1a20ad59dc7e89a0ab265396360d50f}{int \hyperlink{classTiXmlAttribute_aa1a20ad59dc7e89a0ab265396360d50f}{\-Int\-Value} () const }\label{classTiXmlAttribute_aa1a20ad59dc7e89a0ab265396360d50f}

\begin{DoxyCompactList}\small\item\em \-Return the value of this attribute, converted to an integer. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a2880ddef53fc7522c99535273954d230}{double \hyperlink{classTiXmlAttribute_a2880ddef53fc7522c99535273954d230}{\-Double\-Value} () const }\label{classTiXmlAttribute_a2880ddef53fc7522c99535273954d230}

\begin{DoxyCompactList}\small\item\em \-Return the value of this attribute, converted to a double. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a64cee17bceb8232eb0736d26dd082d79}{const \-T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G \& {\bfseries \-Name\-T\-Str} () const }\label{classTiXmlAttribute_a64cee17bceb8232eb0736d26dd082d79}

\item 
int \hyperlink{classTiXmlAttribute_ad6c93088ee21af41a107931223339344}{\-Query\-Int\-Value} (int $\ast$\-\_\-value) const 
\item 
\hypertarget{classTiXmlAttribute_ac87b2a8489906a5d7aa2875f20be3513}{int \hyperlink{classTiXmlAttribute_ac87b2a8489906a5d7aa2875f20be3513}{\-Query\-Double\-Value} (double $\ast$\-\_\-value) const }\label{classTiXmlAttribute_ac87b2a8489906a5d7aa2875f20be3513}

\begin{DoxyCompactList}\small\item\em \-Query\-Double\-Value examines the value string. \-See \hyperlink{classTiXmlAttribute_ad6c93088ee21af41a107931223339344}{\-Query\-Int\-Value()}. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_ab7fa3d21ff8d7c5764cf9af15b667a99}{void \hyperlink{classTiXmlAttribute_ab7fa3d21ff8d7c5764cf9af15b667a99}{\-Set\-Name} (const char $\ast$\-\_\-name)}\label{classTiXmlAttribute_ab7fa3d21ff8d7c5764cf9af15b667a99}

\begin{DoxyCompactList}\small\item\em \-Set the name of this attribute. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a2dae44178f668b3cb48101be4f2236a0}{void \hyperlink{classTiXmlAttribute_a2dae44178f668b3cb48101be4f2236a0}{\-Set\-Value} (const char $\ast$\-\_\-value)}\label{classTiXmlAttribute_a2dae44178f668b3cb48101be4f2236a0}

\begin{DoxyCompactList}\small\item\em \-Set the value. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a7e065df640116a62ea4f4b7da5449cc8}{void \hyperlink{classTiXmlAttribute_a7e065df640116a62ea4f4b7da5449cc8}{\-Set\-Int\-Value} (int \-\_\-value)}\label{classTiXmlAttribute_a7e065df640116a62ea4f4b7da5449cc8}

\begin{DoxyCompactList}\small\item\em \-Set the value from an integer. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a0316da31373496c4368ad549bf711394}{void \hyperlink{classTiXmlAttribute_a0316da31373496c4368ad549bf711394}{\-Set\-Double\-Value} (double \-\_\-value)}\label{classTiXmlAttribute_a0316da31373496c4368ad549bf711394}

\begin{DoxyCompactList}\small\item\em \-Set the value from a double. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_ab296ff0c9a8c701055cd257a8a976e57}{void \hyperlink{classTiXmlAttribute_ab296ff0c9a8c701055cd257a8a976e57}{\-Set\-Name} (const std\-::string \&\-\_\-name)}\label{classTiXmlAttribute_ab296ff0c9a8c701055cd257a8a976e57}

\begin{DoxyCompactList}\small\item\em \-S\-T\-L std\-::string form. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_ab43f67a0cc3ec1d80e62606500f0925f}{void \hyperlink{classTiXmlAttribute_ab43f67a0cc3ec1d80e62606500f0925f}{\-Set\-Value} (const std\-::string \&\-\_\-value)}\label{classTiXmlAttribute_ab43f67a0cc3ec1d80e62606500f0925f}

\begin{DoxyCompactList}\small\item\em \-S\-T\-L std\-::string form. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a1c78e92e223a40843f644ba48ef69f67}{const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ \hyperlink{classTiXmlAttribute_a1c78e92e223a40843f644ba48ef69f67}{\-Next} () const }\label{classTiXmlAttribute_a1c78e92e223a40843f644ba48ef69f67}

\begin{DoxyCompactList}\small\item\em \-Get the next sibling attribute in the \-D\-O\-M. \-Returns null at end. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_a138320aa7793b148ba7e5bd0a0ea4db6}{\hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ {\bfseries \-Next} ()}\label{classTiXmlAttribute_a138320aa7793b148ba7e5bd0a0ea4db6}

\item 
\hypertarget{classTiXmlAttribute_a6ebbfe333fe76cd834bd6cbcca3130cf}{const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ \hyperlink{classTiXmlAttribute_a6ebbfe333fe76cd834bd6cbcca3130cf}{\-Previous} () const }\label{classTiXmlAttribute_a6ebbfe333fe76cd834bd6cbcca3130cf}

\begin{DoxyCompactList}\small\item\em \-Get the previous sibling attribute in the \-D\-O\-M. \-Returns null at beginning. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlAttribute_ae4dabc932cba945ed1e92fec5f121193}{\hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ {\bfseries \-Previous} ()}\label{classTiXmlAttribute_ae4dabc932cba945ed1e92fec5f121193}

\item 
\hypertarget{classTiXmlAttribute_ae48c2a65b520d453914ce4e845d607cf}{bool {\bfseries operator==} (const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} \&rhs) const }\label{classTiXmlAttribute_ae48c2a65b520d453914ce4e845d607cf}

\item 
\hypertarget{classTiXmlAttribute_adb8b6f2cad5948e73e383182e7ce10de}{bool {\bfseries operator$<$} (const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} \&rhs) const }\label{classTiXmlAttribute_adb8b6f2cad5948e73e383182e7ce10de}

\item 
\hypertarget{classTiXmlAttribute_a867562769ef9778c1690cd373246b05b}{bool {\bfseries operator$>$} (const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} \&rhs) const }\label{classTiXmlAttribute_a867562769ef9778c1690cd373246b05b}

\item 
\hypertarget{classTiXmlAttribute_a1437efc74bb8d49da5290772202b5e68}{virtual const char $\ast$ {\bfseries \-Parse} (const char $\ast$p, \-Ti\-Xml\-Parsing\-Data $\ast$data, \-Ti\-Xml\-Encoding encoding)}\label{classTiXmlAttribute_a1437efc74bb8d49da5290772202b5e68}

\item 
virtual void \hyperlink{classTiXmlAttribute_acc04956c1d5c4c31fe74f7a7528d109a}{\-Print} (\-F\-I\-L\-E $\ast$cfile, int depth) const 
\item 
\hypertarget{classTiXmlAttribute_a19e6b6862a80b188571c47947e88d030}{void {\bfseries \-Print} (\-F\-I\-L\-E $\ast$cfile, int depth, \-T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G $\ast$str) const }\label{classTiXmlAttribute_a19e6b6862a80b188571c47947e88d030}

\item 
\hypertarget{classTiXmlAttribute_ac12a94d4548302afb12f488ba101f7d1}{void {\bfseries \-Set\-Document} (\hyperlink{classTiXmlDocument}{\-Ti\-Xml\-Document} $\ast$doc)}\label{classTiXmlAttribute_ac12a94d4548302afb12f488ba101f7d1}

\end{DoxyCompactItemize}
\subsection*{\-Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlAttribute_a35a7b7f89f708527677d5078d41ce0bf}{class {\bfseries \-Ti\-Xml\-Attribute\-Set}}\label{classTiXmlAttribute_a35a7b7f89f708527677d5078d41ce0bf}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-An attribute is a name-\/value pair. \-Elements have an arbitrary number of attributes, each with a unique name.

\begin{DoxyNote}{\-Note}
\-The attributes are not \-Ti\-Xml\-Nodes, since they are not part of the tiny\-X\-M\-L document object model. \-There are other suggested ways to look at this problem. 
\end{DoxyNote}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classTiXmlAttribute_acc04956c1d5c4c31fe74f7a7528d109a}{\index{\-Ti\-Xml\-Attribute@{\-Ti\-Xml\-Attribute}!\-Print@{\-Print}}
\index{\-Print@{\-Print}!TiXmlAttribute@{\-Ti\-Xml\-Attribute}}
\subsubsection[{\-Print}]{\setlength{\rightskip}{0pt plus 5cm}virtual void {\bf \-Ti\-Xml\-Attribute\-::\-Print} (
\begin{DoxyParamCaption}
\item[{\-F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}\label{classTiXmlAttribute_acc04956c1d5c4c31fe74f7a7528d109a}
\-All \-Tiny\-Xml classes can print themselves to a filestream or the string class (\hyperlink{classTiXmlString}{\-Ti\-Xml\-String} in non-\/\-S\-T\-L mode, std\-::string in \-S\-T\-L mode.) \-Either or both cfile and str can be null.

\-This is a formatted print, and will insert tabs and newlines.

(\-For an unformatted stream, use the $<$$<$ operator.) 

\-Implements \hyperlink{classTiXmlBase_a0de56b3f2ef14c65091a3b916437b512}{\-Ti\-Xml\-Base}.

\hypertarget{classTiXmlAttribute_ad6c93088ee21af41a107931223339344}{\index{\-Ti\-Xml\-Attribute@{\-Ti\-Xml\-Attribute}!\-Query\-Int\-Value@{\-Query\-Int\-Value}}
\index{\-Query\-Int\-Value@{\-Query\-Int\-Value}!TiXmlAttribute@{\-Ti\-Xml\-Attribute}}
\subsubsection[{\-Query\-Int\-Value}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Ti\-Xml\-Attribute\-::\-Query\-Int\-Value} (
\begin{DoxyParamCaption}
\item[{int $\ast$}]{\-\_\-value}
\end{DoxyParamCaption}
) const}}\label{classTiXmlAttribute_ad6c93088ee21af41a107931223339344}
\-Query\-Int\-Value examines the value string. \-It is an alternative to the \hyperlink{classTiXmlAttribute_aa1a20ad59dc7e89a0ab265396360d50f}{\-Int\-Value()} method with richer error checking. \-If the value is an integer, it is stored in 'value' and the call returns \-T\-I\-X\-M\-L\-\_\-\-S\-U\-C\-C\-E\-S\-S. \-If it is not an integer, it returns \-T\-I\-X\-M\-L\-\_\-\-W\-R\-O\-N\-G\-\_\-\-T\-Y\-P\-E.

\-A specialized but useful call. \-Note that for success it returns 0, which is the opposite of almost all other \-Tiny\-Xml calls. 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
include/tinyxml.\-h\end{DoxyCompactItemize}
